package com.xxh.cloud.provider.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author ASUS
 * @date 2021/9/2 18:31
 */
@Data
@TableName("t_user_log")
@NoArgsConstructor
public class UserLog {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer uid; //用户id
    private Integer type; //类型  账号密码登陆   手机号登录   人脸识别登录
    private String content; //内容
    private Date ctime; //创建时间
    private String ip;  //ip地址


    public UserLog(Integer uid, Integer type, String content, Date ctime, String ip) {
        this.uid = uid;
        this.type = type;
        this.content = content;
        this.ctime = ctime;
        this.ip = ip;
    }
}
